#include "type.h"

typedef struct {
} __attribute__((__packed__)) GetDeviceIDReq;

typedef struct {
    uint8 CompletionCode;
    uint8 DeviceID;
    uint8 DeviceRevision;
    uint8 FirmwareRevision1;
    uint8 FirmwareRevision2;
    uint8 IPMIVersion;
    uint8 AdditionalDeviceSupport;
    uint8 ManufacturerID[3];
    uint16 ProductID;
    uint32 AuxiliaryFirmwareRevisionInformation;
} __attribute__((__packed__)) GetDeviceIDRes;

uint16 GetDeviceID(uint8* request_data, uint16 request_data_size, uint8* response_data);
